<?php
	class thannhanbs
	{
		public $MaThanNhan = 0;
		public $MaHocSinh = "";
		public $HoTenThanNhan = "";
		public $Phai = "";
		public $DiaChi = "";
		public $NgheNghiep = "";
		public $QuanHe = "";
		public $DienThoai = "";
		public function Add()
		{
			$db = new thannhandb();
			return $db->Add($this->MaHocSinh,$this->HoTenThanNhan,$this->Phai,$this->DiaChi,$this->NgheNghiep,$this->QuanHe,$this->DienThoai);
		}
		
		public function Delete()
		{
			$db = new thannhandb();
			return $db->Delete($this->MaThanNhan);
		}
		
		public function Update()
		{
			$db = new thannhandb();
			return $db->Update($this->MaThanNhan,$this->MaHocSinh,$this->HoTenThanNhan,$this->Phai,$this->DiaChi,$this->NgheNghiep,$this->QuanHe,$this->DienThoai);
		}
			
		public function GetList()
		{
			$db = new thannhandb();
			return $db->GetList($this->MaThanNhan,$this->MaHocSinh,$this->HoTenThanNhan,$this->Phai,$this->DiaChi,$this->NgheNghiep,$this->QuanHe,$this->DienThoai);
		}
		public function Find()
		{
			$db = new thannhandb();
			return $db->Find($this->MaThanNhan,$this->MaHocSinh,$this->HoTenThanNhan,$this->Phai,$this->DiaChi,$this->NgheNghiep,$this->QuanHe,$this->DienThoai);
		}
		
	}
?>